<?php
	include_once('header.php');
	if($_SERVER['REQUEST_METHOD']=='POST') {
		$content_footer = addslashes($_POST['footer_textarea']);
		$query_update_footer = "update `setting` set `value`='".$content_footer."' where `name`='content_footer'";
		$mysql_connection->query($query_update_footer);
	}
	$setting = get_setting($mysql_connection);
?>
<div id="content_b"><form action="<?php echo $_SERVER['PHP_SELF'];?>?message_box=页脚内容已经更新!" method="post">
	<div class="align_center">页脚设置</div>
	<div><textarea id="footer_textarea" name="footer_textarea"><?php echo $setting['content_footer'];?></textarea></div>
	<div><input type="submit" value="保存页脚内容" /></div>
</form></div>
<?php include_once('footer.php');?>
